#ifndef TIME_H
#define TIME_H
#include <cpu.h>

typedef struct tm {
  int tm_sec;
  int tm_min;
  int tm_hour;
  int tm_mday;
  int tm_mon;
  int tm_year;
  int tm_wday; 
  int tm_yday; 
  int tm_isdst;
} struct_tm;

typedef long long time_t; // avoid year 2038 shit

extern void gettime(struct tm*);
extern void rtc_handler(struct regs *);
extern void rtc_install();

#endif
